<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `std` crate.">
<meta name="keywords" content="rust, rustlang, rust-lang, std">
<title>Rust标准库</title>
<link rel="stylesheet" type="text/css" href="../normalize.css">
<link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle">
<link rel="stylesheet" type="text/css" href="../dark.css">
<link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle">
<script src="../storage.js"></script>
<noscript>
<link rel="stylesheet" href="../noscript.css">
</noscript>
<link rel="shortcut icon" href="../favicon.ico">
<style type="text/css">
#kayrx-kayrx, #kayrx-funding, #kayrx-fanyi {
			background-color:azure;
			padding: 0 0.2rem;border-radius: 5%;
}
#kayrx-kayrx a, #kayrx-funding a, #kayrx-fanyi a {
			font-size:1.4rem;
			color:green;
			font-weight: bold;
}
#crate-search{background-image:url("../down-arrow.svg");}
</style>
</head>
<body class="rustdoc mod">
<!--[if lte IE 8]>
<div class="warning">
	This old browser is unsupported and will most likely display funky things.
</div>
<![endif]--><nav class="sidebar">
<div class="sidebar-menu">
	&#9776;
</div>
<a href='../std/index.html'>
<div class='logo-container'>
	<img src='../rust-logo.png' alt='logo'>
</div>
</a>
<p class='location'>
	Rust标准库
</p>
<div class="sidebar-elems">
	<a id='all-types' href='all.html'>
	<p>
		查看Std所有项
	</p>
	</a>
	<div class="block items">
		<ul>
			<li><a href="#reexports">重导出</a></li>
			<li><a href="#primitives">原生类型</a></li>
			<li><a href="#modules">模块</a></li>
			<li><a href="#macros">宏</a></li>
			<li><a href="#keywords">关键字</a></li>
		</ul>
	</div>
	<p class='location'>
	</p>
	<script>window.sidebarCurrent = {name: 'std', ty: 'mod', relpath: '../'};</script>
</div>
</nav>
<div class="theme-picker">
	<button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button>
	<div id="theme-choices">
	</div>
</div>
<script src="../theme.js"></script>
<nav class="sub">
<form class="search-form js-only">
	<div class="search-container">
		<div>
			<select id="crate-search">
				<option value="All crates">全部</option>
			</select>
			<input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="点击或按“ S”进行搜索，按“？”以获取更多选项…" type="search">
		</div>
		<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a>
	</div>
</form>
</nav><section id="main" class="content">
<h1 class='fqn'><span class='out-of-band'><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../src/std/lib.rs.html#1-511' title='goto source code'>[src]</a></span><span class='in-band'><a class="mod" href=''>Std库</a>&emsp;<span id="kayrx-kayrx"><a  href="https://kayrx.xyz/www/reference" >Kayrx</a></span>&emsp;<span id="kayrx-funding"><a  href="https://kayrx.xyz/funding.html" target="_black" >赞助</a></span>&emsp;<span id="kayrx-fanyi"><a  href="https://github.com/kayrx/rust#rust%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80" target="_black" >翻译</a></span></span></h1>
<div class='docblock'>
	<h1 id="rust标准库" class="section-header"><a href="#rust标准库">Rust标准库</a></h1>
	<p>
		Rust标准库是可移植Rust软件的基础，Rust软件是针对<a href="https://crates.io">更广泛的Rust生态系统</a>.的一组最小且经过测试的共享抽象. 它提供了诸如<a href="vec/index.html"><code>Vec&lt;T&gt;</code></a> 和 <a href="option/enum.Option.html"><code>Option&lt;T&gt;</code></a>之类的核心
类型, 对
		<a href="#primitives">语言原语</a>的库定义操作, <a href="#macros%5D">标准宏</a>,  <a href="io/index.html">I/O</a> 和 <a href="thread/index.html">多线程</a>, <a href="#what-is-in-the-standard-library-documentation">等等</a>.
	</p>
	<p>
		<code>Std</code>默认情况下可用于所有Rust库. 因此, 标准库可以在 <a href="https://doc.rust-lang.org/book/ch07-02-defining-modules-to-control-scope-and-privacy.html"><code>use</code></a> 语句 通过 std路径访问, 就像使用<a href="env/index.html"><code>use std::env</code></a>一样.
	</p>
	<h1 id="如何阅读本文档" class="section-header"><a href="#如何阅读本文档">如何阅读本文档</a></h1>
	<p>
		如果您已经知道要查找的名称，最快的查找方法是使用页面顶部的 <a href="#" onclick="focusSearchBar();">搜索栏 </a> .
	</p>
	<p>
		否则，您可能要跳到以下有用的部分之一：
	</p>
	<ul>
		<li><a href="#modules"><code>std::*</code> 模块</a></li>
		<li><a href="#primitives">原生类型</a></li>
		<li><a href="#macros">标准宏</a></li>
		<li><a href="prelude/index.html">Rust前导</a></li>
	</ul>
	<p>
		如果这是您第一次来，那么标准库的文档随意阅读。单击有趣的事物通常会把您带到
有趣的地方。 尽管如此，您还是不想错过一些重要的内容，因此请继续阅读标准库及其文档！
	</p>
	<p>
		一旦您熟悉了标准库的内容，您可能会发现散文使人分心。在开发的此阶段，您可能
需要按页面顶部附近的[-] 按钮以将其折叠为更可浏览的视图。
	</p>
	<p>
		当您查看该 <code>[-]</code>按钮时，也请注意该 <code>[src]</code>按钮。Rust的API文档带
有源代码，建议您阅读。标准库资源通常是高质量的，幕后的偷看常常会启发人
	</p>
	<h1 id="标准库文档中有什么" class="section-header"><a href="#标准库文档中有什么">标准库文档中有什么？</a></h1>
	<p>
		首先，Rust标准库分为多个重点模块, <a href="#modules">所有内容都在此页面的下方列出</a>. 这些模块是所有Rus构造的基石.
它们的名称很强大，例如 
		<a href="slice/index.html"><code>std::slice</code></a> and <a href="cmp/index.html"><code>std::cmp</code></a>. 模块的文档通常包括模块概述和示例，是开始熟悉该库的明智之地.
	</p>
	<p>
		其次，此处记录了 <a href="../book/ch03-02-data-types.html">原生类型</a>的隐式方法. 造成混淆的原因有两个：
	</p>
	<ol>
		<li>由编译器实现原语时，标准库直接在原生类型上实现方法(这是唯一这样做的库), 该方法在<a href="#primitives">原生类型</a>.部分中进行了介绍</li>
		<li>标准库导出了许多 与原生类型同名的模块,这些定义了与原生类型相关的其他项，但没有定义所有重要方法.</li>
	</ol>
	<p>
		因此，例如 有一个<a href="primitive.i32.html">原始类型 <code>i32</code></a>  页面 , 列出了可以在32位整数上调用的所有方法 (非常有用), 而
有一个模块 
		<a href="i32/index.html">std::i32</a> 页面, 记录了常量值 <a href="i32/constant.MIN.html"><code>MIN</code></a>和 <a href="i32/constant.MAX.html"><code>MAX</code></a>  (非常有用).
	</p>
	<p>
		请注意原生<a href="primitive.str.html"><code>str</code></a>  和 <a href="../std/slice/index.html"><code>T</code></a>(也称为 &quot;切片&quot; )的文档. 通过<a href="deref-coercions">deref.强制</a>， 对<a href="string/struct.String.html"><code>String</code></a> 和 <a href="vec/index.html"><code>Vec&lt;T&gt;</code></a> 的许多方法调用实际上分别是对 <a href="primitive.str.html"><code>str</code></a> 和 <a href="../std/slice/index.html"><code>T</code></a> 上的方法的调用.
	</p>
	<p>
		第三，标准库定义了 <a href="prelude/index.html">Rust前导</a>, 这是一小部分项(主要是特质)的集合- 这些项被导入到每个 Crate 的每个模块中。前导中的特质无处不在，这使t前导文档成为学习标准库的一个很好的切入点
	</p>
	<p>
		最后，标准库导出许多标准宏，并<a href="#macros">在此页上列出它们</a> (从技术上讲，并非所有标准宏都由标准库定义-有些是由编译器定义的，但与此处记录的内容相同) 像前导一样，默认情况下，标准宏会导入所有 Crate 中
	</p>
	<h1 id="对文档进行更改" class="section-header"><a href="#对文档进行更改">对文档进行更改</a></h1>
	<p>
		在<a href="https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md">此处查看Rust贡献准则</a>。 该文档的源代码可以在<a href="https://github.com/rust-lang">Github</a>上找到。要做出更改，请确保您先阅读准则，然后提交建议更改的请求。
	</p>
	<p>
		感谢您的贡献！如果您发现文档中的一部分可以改进，请提交PR, 或首先在irc.mozilla.org＃rust-docs上与我们交流.
	</p>
	<h1 id="rust标准库之旅" class="section-header"><a href="#rust标准库之旅">Rust标准库之旅</a></h1>
	<p>
		本文档的其余部分专用于说明Rust标准库的显着功能
	</p>
	<h2 id="容器和集合" class="section-header"><a href="#容器和集合">容器和集合</a></h2>
	<p>
		<a href="option/index.html"><code>option</code></a> 和 <a href="result/index.html"><code>result</code></a> 模块定义可选和错误处理的类型 : <a href="option/enum.Option.html"><code>Option&lt;T&gt;</code></a> 和 <a href="result/enum.Result.html"><code>Result&lt;T, E&gt;</code></a>.  <a href="iter/index.html"><code>iter</code></a>  模块定义Rust的迭代器特质 <a href="iter/trait.Iterator.html"><code>Iterator</code></a>, 与<a href="../book/ch03-05-control-flow.html#looping-through-a-collection-with-for"><code>for</code></a> 循环一起使用以访问集合.
	</p>
	<p>
		T标准库公开了三种处理内存连续区域的常用方法：
	</p>
	<ul>
		<li><a href="vec/index.html"><code>Vec&lt;T&gt;</code></a> - 在运行时可调整大小的堆分配向量/<code>vector</code></li>
		<li><a href="primitive.array.html"><code>[T; n]</code></a> - 在编译时具有固定大小的内联数组</li>
		<li><a href="primitive.slice.html"><code>[T]</code></a> - 具有容纳动态大小切片的任何类型连续存储, 无论是否进行堆分配</li>
	</ul>
	<p>
		切片只能通过某种指针来处理，因此有多种形式，例如：
	</p>
	<ul>
		<li><code>&amp;[T]</code> - <em>共享切片</em></li>
		<li><code>&amp;mut [T]</code> - <em>可变切片</em></li>
		<li><a href="boxed/index.html"><code>Box&lt;[T]&gt;</code></a> - <em>拥有切片</em></li>
	</ul>
	<p>
		<a href="primitive.str.html"><code>str</code></a>, UTF-8字符串切片是一种原始类型, 标准库为此定义了许多方法. Rust  <a href="primitive.str.html"><code>str</code></a>通常被当作不可变的引用:  <code>&amp;str</code>来访问 . 使用拥有/<code>owned</code><a href="string/struct.String.html"><code>String</code></a>来构造和可变字符串
	</p>
	<p>
		要转换为字符串，请使用 <a href="macro.format.html"><code>format!</code></a> 宏；要从字符串转换，请使用 <a href="str/trait.FromStr.html"><code>FromStr</code></a> 特质.
	</p>
	<p>
		可以通过将数据放在引用计数 box 或 <a href="rc/index.html"><code>Rc</code></a> 类型中来共享数据, 如果进一步包含在 <a href="cell/struct.Cell.html"><code>Cell</code></a> 或 <a href="cell/struct.RefCell.html"><code>RefCell</code></a> ,则可以对其进行突变和共享.
Likewise, in a concurrent setting it is common to pair an
atomically-reference-counted box, 
		<a href="sync/struct.Arc.html"><code>Arc</code></a>, with a <a href="sync/struct.Mutex.html"><code>Mutex</code></a> to get the same
effect.
	</p>
	<p>
		该<a href="collections/index.html"><code>collections</code></a> 模块定义了 maps , sets , linked lists 和其他典型的集合类型，包括 <a href="collections/struct.HashMap.html"><code>HashMap&lt;K, V&gt;</code></a>.
	</p>
	<h2 id="平台抽象和-io" class="section-header"><a href="#平台抽象和-io">平台抽象和 I/O</a></h2>
	<p>
		除了基本数据类型外，标准库还主要关注常见平台（尤其是Windows和Unix派生）中的差异的抽象
	</p>
	<p>
		常见类型的 I/O, 包括 <a href="fs/struct.File.html">files</a>, <a href="net/struct.TcpStream.html">TCP</a>, <a href="net/struct.UdpSocket.html">UDP</a>, 在被定义在 <a href="io/index.html"><code>io</code></a>, <a href="fs/index.html"><code>fs</code></a>, 和 <a href="net/index.html"><code>net</code></a> 模块.
	</p>
	<p>
		该 <a href="thread/index.html"><code>thread</code></a> 模块包含Rust的线程抽象. <a href="sync/index.html"><code>sync</code></a> 进一步包含其他原始共享内存类型, 包括 <a href="sync/atomic/index.html"><code>atomic</code></a> 和 <a href="sync/mpsc/index.html"><code>mpsc</code></a>, 其中包含用于消息传递的通道类型.
	</p>
</div>
<h2 id='reexports' class='section-header'><a href="#reexports">Re-exports</a></h2>
<table>
<tr>
	<td>
		<code>pub use core::<a class="mod" href="../core/core_arch/arch/index.html" title="mod core::core_arch::arch">arch</a>;</code>
	</td>
</tr>
</table>
<h2 id='primitives' class='section-header'><a href="#primitives">Primitive Types</a></h2>
<table>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.array.html" title='std::array primitive'>array</a>
	</td>
	<td class='docblock-short'>
		<p>
			一个固定大小的数组, 表示为<code>[T; N]</code>，即元素类型<code>T</code>, 和非负编译时常量<code>N</code>.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.bool.html" title='std::bool primitive'>bool</a>
	</td>
	<td class='docblock-short'>
		<p>
			布尔类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.char.html" title='std::char primitive'>char</a>
	</td>
	<td class='docblock-short'>
		<p>
			字符类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.f32.html" title='std::f32 primitive'>f32</a>
	</td>
	<td class='docblock-short'>
		<p>
			32位浮点类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.f64.html" title='std::f64 primitive'>f64</a>
	</td>
	<td class='docblock-short'>
		<p>
			64位浮点类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.fn.html" title='std::fn primitive'>fn</a>
	</td>
	<td class='docblock-short'>
		<p>
			函数指针，如  <code>fn(usize) -&gt; bool</code>.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.i8.html" title='std::i8 primitive'>i8</a>
	</td>
	<td class='docblock-short'>
		<p>
			8位带符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.i16.html" title='std::i16 primitive'>i16</a>
	</td>
	<td class='docblock-short'>
		<p>
			16位带符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.i32.html" title='std::i32 primitive'>i32</a>
	</td>
	<td class='docblock-short'>
		<p>
			32位带符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.i64.html" title='std::i64 primitive'>i64</a>
	</td>
	<td class='docblock-short'>
		<p>
			64位带符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.i128.html" title='std::i128 primitive'>i128</a>
	</td>
	<td class='docblock-short'>
		<p>
			128位带符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.isize.html" title='std::isize primitive'>isize</a>
	</td>
	<td class='docblock-short'>
		<p>
			指针大小的有符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.pointer.html" title='std::pointer primitive'>pointer</a>
	</td>
	<td class='docblock-short'>
		<p>
			原始的，不安全的指针<code>*const T</code>, 和 <code>*mut T</code>.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.reference.html" title='std::reference primitive'>reference</a>
	</td>
	<td class='docblock-short'>
		<p>
			共享和可变引用
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.slice.html" title='std::slice primitive'>slice</a>
	</td>
	<td class='docblock-short'>
		<p>
			具有动态尺寸视图的连续序列<code>[T]</code>
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.str.html" title='std::str primitive'>str</a>
	</td>
	<td class='docblock-short'>
		<p>
			字符切片
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.tuple.html" title='std::tuple primitive'>tuple</a>
	</td>
	<td class='docblock-short'>
		<p>
			有限的异构序列<code>(T, U, ..)</code>.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.u8.html" title='std::u8 primitive'>u8</a>
	</td>
	<td class='docblock-short'>
		<p>
			8位无符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.u16.html" title='std::u16 primitive'>u16</a>
	</td>
	<td class='docblock-short'>
		<p>
			16位无符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.u32.html" title='std::u32 primitive'>u32</a>
	</td>
	<td class='docblock-short'>
		<p>
			32位无符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.u64.html" title='std::u64 primitive'>u64</a>
	</td>
	<td class='docblock-short'>
		<p>
			64位无符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.u128.html" title='std::u128 primitive'>u128</a>
	</td>
	<td class='docblock-short'>
		<p>
			128位无符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.unit.html" title='std::unit primitive'>unit</a>
	</td>
	<td class='docblock-short'>
		<p>
			<code>()</code> 类型，有时被称为&quot;单元&quot; 或 &quot;无&quot;
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="primitive" href="primitive.usize.html" title='std::usize primitive'>usize</a>
	</td>
	<td class='docblock-short'>
		<p>
			指针大小的无符号整数类型
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="primitive" href="primitive.never.html" title='std::never primitive'>never</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			<code>!</code> 类型，也被称为&quot;永不&quot;
		</p>
	</td>
</tr>
</table>
<h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
<table>
<tr class='module-item'>
	<td>
		<a class="mod" href="alloc/index.html" title='std::alloc mod'>alloc</a>
	</td>
	<td class='docblock-short'>
		<p>
			内存分配APIs
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="any/index.html" title='std::any mod'>any</a>
	</td>
	<td class='docblock-short'>
		<p>
			该模块实现了<code>Any</code>特质，该特质允许通过运行时反射来动态键入任何<code>'static</code> 类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="array/index.html" title='std::array mod'>array</a>
	</td>
	<td class='docblock-short'>
		<p>
			定长数组的 <code>Eq</code> 之类的实现. 限制到一定长度。 最终我们应该能够扩展到所有长度。
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="ascii/index.html" title='std::ascii mod'>ascii</a>
	</td>
	<td class='docblock-short'>
		<p>
			ASCII字符串和字符的操作
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="borrow/index.html" title='std::borrow mod'>borrow</a>
	</td>
	<td class='docblock-short'>
		<p>
			A module for working with borrowed data.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="boxed/index.html" title='std::boxed mod'>boxed</a>
	</td>
	<td class='docblock-short'>
		<p>
			A pointer type for heap allocation.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="cell/index.html" title='std::cell mod'>cell</a>
	</td>
	<td class='docblock-short'>
		<p>
			共享可变容器
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="char/index.html" title='std::char mod'>char</a>
	</td>
	<td class='docblock-short'>
		<p>
			字符类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="clone/index.html" title='std::clone mod'>clone</a>
	</td>
	<td class='docblock-short'>
		<p>
			无法<code>隐式复制</code>类型的<code>Clone</code>特质
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="cmp/index.html" title='std::cmp mod'>cmp</a>
	</td>
	<td class='docblock-short'>
		<p>
			排序和比较的功能
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="collections/index.html" title='std::collections mod'>collections</a>
	</td>
	<td class='docblock-short'>
		<p>
			集合类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="convert/index.html" title='std::convert mod'>convert</a>
	</td>
	<td class='docblock-short'>
		<p>
			类型之间转换的特质
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="default/index.html" title='std::default mod'>default</a>
	</td>
	<td class='docblock-short'>
		<p>
			类型的默认值可能具有意义的<code>Default</code>特质
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="env/index.html" title='std::env mod'>env</a>
	</td>
	<td class='docblock-short'>
		<p>
			检查和管理进程的环境
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="error/index.html" title='std::error mod'>error</a>
	</td>
	<td class='docblock-short'>
		<p>
			处理错误的特质
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="f32/index.html" title='std::f32 mod'>f32</a>
	</td>
	<td class='docblock-short'>
		<p>
			该模块提供特定于<code>f32</code>浮点数据类型实现的常量
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="f64/index.html" title='std::f64 mod'>f64</a>
	</td>
	<td class='docblock-short'>
		<p>
			该模块提供特定于<code>f64</code>浮点数据类型实现的常量
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="ffi/index.html" title='std::ffi mod'>ffi</a>
	</td>
	<td class='docblock-short'>
		<p>
			格式化和打印 String的实用工具
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="fmt/index.html" title='std::fmt mod'>fmt</a>
	</td>
	<td class='docblock-short'>
		<p>
			Utilities for formatting and printing <code>String</code>s.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="fs/index.html" title='std::fs mod'>fs</a>
	</td>
	<td class='docblock-short'>
		<p>
			文件系统管理操作
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="future/index.html" title='std::future mod'>future</a>
	</td>
	<td class='docblock-short'>
		<p>
			异步值
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="hash/index.html" title='std::hash mod'>hash</a>
	</td>
	<td class='docblock-short'>
		<p>
			通用哈希支持
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="hint/index.html" title='std::hint mod'>hint</a>
	</td>
	<td class='docblock-short'>
		<p>
			对编译器的提示，该提示会影响应如何发出或优化代码
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="i8/index.html" title='std::i8 mod'>i8</a>
	</td>
	<td class='docblock-short'>
		<p>
			8位带符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="i16/index.html" title='std::i16 mod'>i16</a>
	</td>
	<td class='docblock-short'>
		<p>
			16位带符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="i32/index.html" title='std::i32 mod'>i32</a>
	</td>
	<td class='docblock-short'>
		<p>
			32位带符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="i64/index.html" title='std::i64 mod'>i64</a>
	</td>
	<td class='docblock-short'>
		<p>
			64位带符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="i128/index.html" title='std::i128 mod'>i128</a>
	</td>
	<td class='docblock-short'>
		<p>
			128位带符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="io/index.html" title='std::io mod'>io</a>
	</td>
	<td class='docblock-short'>
		<p>
			核心 I / O功能的特质，帮助程序和类型定义
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="isize/index.html" title='std::isize mod'>isize</a>
	</td>
	<td class='docblock-short'>
		<p>
			指针大小的有符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="iter/index.html" title='std::iter mod'>iter</a>
	</td>
	<td class='docblock-short'>
		<p>
			可组合外部迭代
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="marker/index.html" title='std::marker mod'>marker</a>
	</td>
	<td class='docblock-short'>
		<p>
			原始特质和类型的类型基本属性表现
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="mem/index.html" title='std::mem mod'>mem</a>
	</td>
	<td class='docblock-short'>
		<p>
			处理内存的基本功能
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="net/index.html" title='std::net mod'>net</a>
	</td>
	<td class='docblock-short'>
		<p>
			<code>TCP/UDP</code> 通信的网络原语
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="num/index.html" title='std::num mod'>num</a>
	</td>
	<td class='docblock-short'>
		<p>
			数字的附加功能
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="ops/index.html" title='std::ops mod'>ops</a>
	</td>
	<td class='docblock-short'>
		<p>
			可重载运算符
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="option/index.html" title='std::option mod'>option</a>
	</td>
	<td class='docblock-short'>
		<p>
			可选值
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="os/index.html" title='std::os mod'>os</a>
	</td>
	<td class='docblock-short'>
		<p>
			特定于操作系统的功能
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="panic/index.html" title='std::panic mod'>panic</a>
	</td>
	<td class='docblock-short'>
		<p>
			标准库中的恐慌/故障支持
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="path/index.html" title='std::path mod'>path</a>
	</td>
	<td class='docblock-short'>
		<p>
			跨平台路径操作
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="pin/index.html" title='std::pin mod'>pin</a>
	</td>
	<td class='docblock-short'>
		<p>
			将数据固定到其在内存中位置的类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="prelude/index.html" title='std::prelude mod'>prelude</a>
	</td>
	<td class='docblock-short'>
		<p>
			Rust前导
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="process/index.html" title='std::process mod'>process</a>
	</td>
	<td class='docblock-short'>
		<p>
			进程处理模块
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="ptr/index.html" title='std::ptr mod'>ptr</a>
	</td>
	<td class='docblock-short'>
		<p>
			Manually manage memory through raw pointers.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="rc/index.html" title='std::rc mod'>rc</a>
	</td>
	<td class='docblock-short'>
		<p>
			Single-threaded reference-counting pointers. 'Rc' stands for 'Reference
Counted'.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="result/index.html" title='std::result mod'>result</a>
	</td>
	<td class='docblock-short'>
		<p>
			<code>Result</code> 类型错误处理
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="slice/index.html" title='std::slice mod'>slice</a>
	</td>
	<td class='docblock-short'>
		<p>
			A dynamically-sized view into a contiguous sequence, <code>[T]</code>.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="str/index.html" title='std::str mod'>str</a>
	</td>
	<td class='docblock-short'>
		<p>
			Unicode string slices.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="string/index.html" title='std::string mod'>string</a>
	</td>
	<td class='docblock-short'>
		<p>
			A UTF-8 encoded, growable string.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="sync/index.html" title='std::sync mod'>sync</a>
	</td>
	<td class='docblock-short'>
		<p>
			有用的同步原语
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="task/index.html" title='std::task mod'>task</a>
	</td>
	<td class='docblock-short'>
		<p>
			Types and Traits for working with asynchronous tasks.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="thread/index.html" title='std::thread mod'>thread</a>
	</td>
	<td class='docblock-short'>
		<p>
			原生线程
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="time/index.html" title='std::time mod'>time</a>
	</td>
	<td class='docblock-short'>
		<p>
			时间量化
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="u8/index.html" title='std::u8 mod'>u8</a>
	</td>
	<td class='docblock-short'>
		<p>
			8位无符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="u16/index.html" title='std::u16 mod'>u16</a>
	</td>
	<td class='docblock-short'>
		<p>
			16位无符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="u32/index.html" title='std::u32 mod'>u32</a>
	</td>
	<td class='docblock-short'>
		<p>
			32位无符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="u64/index.html" title='std::u64 mod'>u64</a>
	</td>
	<td class='docblock-short'>
		<p>
			64位无符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="u128/index.html" title='std::u128 mod'>u128</a>
	</td>
	<td class='docblock-short'>
		<p>
			128位无符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="usize/index.html" title='std::usize mod'>usize</a>
	</td>
	<td class='docblock-short'>
		<p>
			指针大小的无符号整数类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="mod" href="vec/index.html" title='std::vec mod'>vec</a>
	</td>
	<td class='docblock-short'>
		<p>
			A contiguous growable array type with heap-allocated contents, written
			<code>Vec&lt;T&gt;</code>.
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="mod" href="backtrace/index.html" title='std::backtrace mod'>backtrace</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			支持捕获OS线程的堆栈回溯
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="mod" href="intrinsics/index.html" title='std::intrinsics mod'>intrinsics</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			Compiler intrinsics.
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="mod" href="raw/index.html" title='std::raw mod'>raw</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			包含用于编译器内置类型布局的结构定义
		</p>
	</td>
</tr>
</table>
<h2 id='macros' class='section-header'><a href="#macros">Macros</a></h2>
<table>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.assert.html" title='std::assert macro'>assert</a>
	</td>
	<td class='docblock-short'>
		<p>
			运行时断言布尔表达式在为 <code>true</code>
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.assert_eq.html" title='std::assert_eq macro'>assert_eq</a>
	</td>
	<td class='docblock-short'>
		<p>
			断言两个表达式彼此相等（使用 <a href="cmp/trait.PartialEq.html"><code>PartialEq</code></a>）
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.assert_ne.html" title='std::assert_ne macro'>assert_ne</a>
	</td>
	<td class='docblock-short'>
		<p>
			断言两个表达式彼此不相等（使用<a href="cmp/trait.PartialEq.html"><code>PartialEq</code></a>）
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.cfg.html" title='std::cfg macro'>cfg</a>
	</td>
	<td class='docblock-short'>
		<p>
			在编译时评估配置标志的布尔组合
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.column.html" title='std::column macro'>column</a>
	</td>
	<td class='docblock-short'>
		<p>
			扩展为调用它的列号
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.compile_error.html" title='std::compile_error macro'>compile_error</a>
	</td>
	<td class='docblock-short'>
		<p>
			当导致编译失败时,给定的错误消息
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.concat.html" title='std::concat macro'>concat</a>
	</td>
	<td class='docblock-short'>
		<p>
			Concatenates literals into a static string slice.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.dbg.html" title='std::dbg macro'>dbg</a>
	</td>
	<td class='docblock-short'>
		<p>
			打印并返回给定表达式的值，以进行快速和脏调试
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.debug_assert.html" title='std::debug_assert macro'>debug_assert</a>
	</td>
	<td class='docblock-short'>
		<p>
			运行时断言布尔表达式在为 <code>true</code>
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.debug_assert_eq.html" title='std::debug_assert_eq macro'>debug_assert_eq</a>
	</td>
	<td class='docblock-short'>
		<p>
			断言两个表达式彼此相等
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.debug_assert_ne.html" title='std::debug_assert_ne macro'>debug_assert_ne</a>
	</td>
	<td class='docblock-short'>
		<p>
			断言两个表达式彼此不相等
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.env.html" title='std::env macro'>env</a>
	</td>
	<td class='docblock-short'>
		<p>
			在编译时检查环境变量.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.eprint.html" title='std::eprint macro'>eprint</a>
	</td>
	<td class='docblock-short'>
		<p>
			打印到标准错误
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.eprintln.html" title='std::eprintln macro'>eprintln</a>
	</td>
	<td class='docblock-short'>
		<p>
			打印到标准错误并换行
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.file.html" title='std::file macro'>file</a>
	</td>
	<td class='docblock-short'>
		<p>
			扩展为调用它的文件名
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.format.html" title='std::format macro'>format</a>
	</td>
	<td class='docblock-short'>
		<p>
			Creates a <code>String</code> using interpolation of runtime expressions.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.format_args.html" title='std::format_args macro'>format_args</a>
	</td>
	<td class='docblock-short'>
		<p>
			字符串格式宏的构造参数
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.include.html" title='std::include macro'>include</a>
	</td>
	<td class='docblock-short'>
		<p>
			根据上下文将文件解析为表达式或项
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.include_bytes.html" title='std::include_bytes macro'>include_bytes</a>
	</td>
	<td class='docblock-short'>
		<p>
			包含一个文件，作为对字节数组的引用
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.include_str.html" title='std::include_str macro'>include_str</a>
	</td>
	<td class='docblock-short'>
		<p>
			包含一个utf8编码的文件作为字符串
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.is_x86_feature_detected.html" title='std::is_x86_feature_detected macro'>is_x86_feature_detected</a>
	</td>
	<td class='docblock-short'>
		<p>
			A macro to test at <em>runtime</em> whether a CPU feature is available on
x86/x86-64 platforms.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.line.html" title='std::line macro'>line</a>
	</td>
	<td class='docblock-short'>
		<p>
			Expands to the line number on which it was invoked.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.module_path.html" title='std::module_path macro'>module_path</a>
	</td>
	<td class='docblock-short'>
		<p>
			扩展为表示当前模块路径的字符串
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.option_env.html" title='std::option_env macro'>option_env</a>
	</td>
	<td class='docblock-short'>
		<p>
			可选的在编译时检查环境变量。
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.panic.html" title='std::panic macro'>panic</a>
	</td>
	<td class='docblock-short'>
		<p>
			Panics the current thread.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.print.html" title='std::print macro'>print</a>
	</td>
	<td class='docblock-short'>
		<p>
			打印到标准输出
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.println.html" title='std::println macro'>println</a>
	</td>
	<td class='docblock-short'>
		<p>
			打印到标准错误并换行
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.stringify.html" title='std::stringify macro'>stringify</a>
	</td>
	<td class='docblock-short'>
		<p>
			对其参数进行字符串化
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.thread_local.html" title='std::thread_local macro'>thread_local</a>
	</td>
	<td class='docblock-short'>
		<p>
			Declare a new thread local storage key of type <a href="../std/thread/struct.LocalKey.html"><code>std::thread::LocalKey</code></a>.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.todo.html" title='std::todo macro'>todo</a>
	</td>
	<td class='docblock-short'>
		<p>
			表示未完成的代码
		</p>
	</td>
</tr>
<tr class='deprecated module-item'>
	<td>
		<a class="macro" href="macro.try.html" title='std::try macro'>try</a>
	</td>
	<td class='docblock-short'>
		<span class="stab deprecated">Deprecated</span>
		<p>
			展开<code>result</code>或传播其错误
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.unimplemented.html" title='std::unimplemented macro'>unimplemented</a>
	</td>
	<td class='docblock-short'>
		<p>
			Panic并显示“尚未实现”信息，表示未完成的代码
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.unreachable.html" title='std::unreachable macro'>unreachable</a>
	</td>
	<td class='docblock-short'>
		<p>
			表示无法访问的代码
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.vec.html" title='std::vec macro'>vec</a>
	</td>
	<td class='docblock-short'>
		<p>
			Creates a <a href="../std/vec/struct.Vec.html"><code>Vec</code></a> containing the arguments.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.write.html" title='std::write macro'>write</a>
	</td>
	<td class='docblock-short'>
		<p>
			将格式化的数据写入缓冲区
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="macro" href="macro.writeln.html" title='std::writeln macro'>writeln</a>
	</td>
	<td class='docblock-short'>
		<p>
			将格式化的数据写入缓冲区并换行
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.asm.html" title='std::asm macro'>asm</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			内联汇编
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.concat_idents.html" title='std::concat_idents macro'>concat_idents</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			将多个标识符连接成一个标识符
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.format_args_nl.html" title='std::format_args_nl macro'>format_args_nl</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			与format_args相同，但最后添加一个换行符
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.global_asm.html" title='std::global_asm macro'>global_asm</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			模块级内联汇编
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.is_aarch64_feature_detected.html" title='std::is_aarch64_feature_detected macro'>is_aarch64_feature_detected</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			Prevents compilation if <code>is_aarch64_feature_detected</code> is used somewhere else
than 
			<code>aarch64</code> targets.
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.is_arm_feature_detected.html" title='std::is_arm_feature_detected macro'>is_arm_feature_detected</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			Prevents compilation if <code>is_arm_feature_detected</code> is used somewhere else
than 
			<code>ARM</code> targets.
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.is_mips64_feature_detected.html" title='std::is_mips64_feature_detected macro'>is_mips64_feature_detected</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			Prevents compilation if <code>is_mips64_feature_detected</code> is used somewhere else
than 
			<code>MIPS64</code> targets.
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.is_mips_feature_detected.html" title='std::is_mips_feature_detected macro'>is_mips_feature_detected</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			Prevents compilation if <code>is_mips_feature_detected</code> is used somewhere else
than 
			<code>MIPS</code> targets.
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.is_powerpc64_feature_detected.html" title='std::is_powerpc64_feature_detected macro'>is_powerpc64_feature_detected</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			Prevents compilation if <code>is_powerpc64_feature_detected</code> is used somewhere
else than 
			<code>PowerPC64</code> targets.
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.is_powerpc_feature_detected.html" title='std::is_powerpc_feature_detected macro'>is_powerpc_feature_detected</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			Prevents compilation if <code>is_powerpc_feature_detected</code> is used somewhere else
than 
			<code>PowerPC</code> targets.
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.log_syntax.html" title='std::log_syntax macro'>log_syntax</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			将传递的令牌打印到标准输出中
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.matches.html" title='std::matches macro'>matches</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			返回与任何给定模式匹配的表达式
Returns whether the given expression matches any of the given patterns.
		</p>
	</td>
</tr>
<tr class='unstable module-item'>
	<td>
		<a class="macro" href="macro.trace_macros.html" title='std::trace_macros macro'>trace_macros</a>
	</td>
	<td class='docblock-short'>
		<span class="stab unstable">Experimental</span>
		<p>
			启用或禁用用于调试其他宏的跟踪功能
		</p>
	</td>
</tr>
</table>
<h2 id='keywords' class='section-header'><a href="#keywords">Keywords</a></h2>
<table>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.Self.html" title='std::Self keyword'>Self</a>
	</td>
	<td class='docblock-short'>
		<p>
			含有<a href="keyword.trait.html"><code>trait</code></a>  或 <a href="keyword.impl.html"><code>impl</code></a>  块的实现类型, 或含有类型定义的当前类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.as.html" title='std::as keyword'>as</a>
	</td>
	<td class='docblock-short'>
		<p>
			类型间转换，或重命名导入
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.async.html" title='std::async keyword'>async</a>
	</td>
	<td class='docblock-short'>
		<p>
			返回 <a href="./future/trait.Future.html"><code>Future</code></a> 而不是阻塞当前线程
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.await.html" title='std::await keyword'>await</a>
	</td>
	<td class='docblock-short'>
		<p>
			暂停执行，直到 <a href="./future/trait.Future.html"><code>Future</code></a> 准备好结果
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.break.html" title='std::break keyword'>break</a>
	</td>
	<td class='docblock-short'>
		<p>
			从循环中提前退出
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.const.html" title='std::const keyword'>const</a>
	</td>
	<td class='docblock-short'>
		<p>
			编译时常量和确定性函数
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.continue.html" title='std::continue keyword'>continue</a>
	</td>
	<td class='docblock-short'>
		<p>
			跳到循环的下一个迭代
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.crate.html" title='std::crate keyword'>crate</a>
	</td>
	<td class='docblock-short'>
		<p>
			Rust二进制文件或库
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.dyn.html" title='std::dyn keyword'>dyn</a>
	</td>
	<td class='docblock-short'>
		<p>
			命名<a href="https://doc.rust-lang.org/book/ch17-02-trait-objects.html">特质对象</a>的类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.else.html" title='std::else keyword'>else</a>
	</td>
	<td class='docblock-short'>
		<p>
			当<a href="keyword.if.html"><code>if</code></a>  条件不成立时该怎么办
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.enum.html" title='std::enum keyword'>enum</a>
	</td>
	<td class='docblock-short'>
		<p>
			一种类型，可以是多种变体中的任何一种
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.extern.html" title='std::extern keyword'>extern</a>
	</td>
	<td class='docblock-short'>
		<p>
			链接到或导入外部代码
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.false.html" title='std::false keyword'>false</a>
	</td>
	<td class='docblock-short'>
		<p>
			一个<a href="primitive.bool.html"><code>bool</code></a> 表示逻辑 <strong>false</strong>的类型的值
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.fn.html" title='std::fn keyword'>fn</a>
	</td>
	<td class='docblock-short'>
		<p>
			函数或函数指针
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.for.html" title='std::for keyword'>for</a>
	</td>
	<td class='docblock-short'>
		<p>
			Iteration with <a href="keyword.in.html"><code>in</code></a>, trait implementation with <a href="keyword.impl.html"><code>impl</code></a>, or <a href="https://doc.rust-lang.org/reference/trait-bounds.html#higher-ranked-trait-bounds">higher-ranked trait bounds</a>
(
			<code>for&lt;'a&gt;</code>).
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.if.html" title='std::if keyword'>if</a>
	</td>
	<td class='docblock-short'>
		<p>
			如果条件成立，则执行块
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.impl.html" title='std::impl keyword'>impl</a>
	</td>
	<td class='docblock-short'>
		<p>
			为类型实现一些功能
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.in.html" title='std::in keyword'>in</a>
	</td>
	<td class='docblock-short'>
		<p>
			与<a href="keyword.for.html"><code>for</code></a>使用迭代一系列值
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.let.html" title='std::let keyword'>let</a>
	</td>
	<td class='docblock-short'>
		<p>
			将值绑定到变量
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.loop.html" title='std::loop keyword'>loop</a>
	</td>
	<td class='docblock-short'>
		<p>
			无限循环
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.match.html" title='std::match keyword'>match</a>
	</td>
	<td class='docblock-short'>
		<p>
			基于模式匹配的控制流
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.mod.html" title='std::mod keyword'>mod</a>
	</td>
	<td class='docblock-short'>
		<p>
			将代码组织到<a href="https://doc.rust-lang.org/reference/items/modules.html">模块</a>中.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.move.html" title='std::move keyword'>move</a>
	</td>
	<td class='docblock-short'>
		<p>
			通过值捕获<a href="https://doc.rust-lang.org/book/second-edition/ch13-01-closures.html">闭包</a>环境
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.mut.html" title='std::mut keyword'>mut</a>
	</td>
	<td class='docblock-short'>
		<p>
			可变的绑定，引用或指针
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.pub.html" title='std::pub keyword'>pub</a>
	</td>
	<td class='docblock-short'>
		<p>
			使其可见
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.ref.html" title='std::ref keyword'>ref</a>
	</td>
	<td class='docblock-short'>
		<p>
			在模式匹配期间按引用绑定
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.return.html" title='std::return keyword'>return</a>
	</td>
	<td class='docblock-short'>
		<p>
			从函数返回值
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.self.html" title='std::self keyword'>self</a>
	</td>
	<td class='docblock-short'>
		<p>
			方法的接收者，或当前模块
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.static.html" title='std::static keyword'>static</a>
	</td>
	<td class='docblock-short'>
		<p>
			在程序期间有效。
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.struct.html" title='std::struct keyword'>struct</a>
	</td>
	<td class='docblock-short'>
		<p>
			由其他类型组成的类型
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.super.html" title='std::super keyword'>super</a>
	</td>
	<td class='docblock-short'>
		<p>
			当前<a href="https://doc.rust-lang.org/reference/items/modules.html">模块</a>的父级
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.trait.html" title='std::trait keyword'>trait</a>
	</td>
	<td class='docblock-short'>
		<p>
			一类类型的通用接口
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.true.html" title='std::true keyword'>true</a>
	</td>
	<td class='docblock-short'>
		<p>
			一个 <a href="primitive.bool.html"><code>bool</code></a> 表示逻辑 <strong>true</strong>的类型的值
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.type.html" title='std::type keyword'>type</a>
	</td>
	<td class='docblock-short'>
		<p>
			为现有类型定义别名
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.union.html" title='std::union keyword'>union</a>
	</td>
	<td class='docblock-short'>
		<p>
			Rust中相当于C风格的 <a href="https://doc.rust-lang.org/reference/items/unions.html">union</a>.
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.unsafe.html" title='std::unsafe keyword'>unsafe</a>
	</td>
	<td class='docblock-short'>
		<p>
			类型系统无法验证其<a href="https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html">内存安全</a> 性的代码或接口
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.use.html" title='std::use keyword'>use</a>
	</td>
	<td class='docblock-short'>
		<p>
			从其他 <code>Crate</code> 或模块导入或重命名项
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.where.html" title='std::where keyword'>where</a>
	</td>
	<td class='docblock-short'>
		<p>
			添加使用项必须保持的约束。
		</p>
	</td>
</tr>
<tr class='module-item'>
	<td>
		<a class="keyword" href="keyword.while.html" title='std::while keyword'>while</a>
	</td>
	<td class='docblock-short'>
		<p>
			符合条件时循环
		</p>
	</td>
</tr>
</table>
</section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden">
<div>
	<h1 class="hidden">Help</h1>
	<div class="shortcuts">
		<h2>Keyboard Shortcuts</h2>
		<dl>
			<dt><kbd>?</kbd></dt>
			<dd>Show this help dialog</dd>
			<dt><kbd>S</kbd></dt>
			<dd>Focus the search field</dd>
			<dt><kbd>↑</kbd></dt>
			<dd>Move up in search results</dd>
			<dt><kbd>↓</kbd></dt>
			<dd>Move down in search results</dd>
			<dt><kbd>↹</kbd></dt>
			<dd>Switch tab</dd>
			<dt><kbd>&#9166;</kbd></dt>
			<dd>Go to active search result</dd>
			<dt><kbd>+</kbd></dt>
			<dd>Expand all sections</dd>
			<dt><kbd>-</kbd></dt>
			<dd>Collapse all sections</dd>
		</dl>
	</div>
	<div class="infos">
		<h2>Search Tricks</h2>
		<p>
			Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.
		</p>
		<p>
			Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.
		</p>
		<p>
			Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)
		</p>
		<p>
			Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)
		</p>
		<p>
			You can look for items with an exact name by putting double quotes around your request: <code>"string"</code>
		</p>
		<p>
			Look for items inside another one by searching for a path: <code>vec::Vec</code>
		</p>
	</div>
</div>
</aside>
<script>window.rootPath = "../";window.currentCrate = "std";</script>
<script src="../aliases.js"></script>
<script src="../main.js"></script>
<script defer src="../search-index.js"></script>
</body>
</html>
